import logging

class ConfigManager:
    _instance = None

    def __new__(cls):
        if cls._instance is None:
            cls._instance = super(ConfigManager, cls).__new__(cls)
            cls._instance.config = {}
            # 获取日志记录器
            cls._instance.logger = logging.getLogger(__name__)
        return cls._instance

    def update_config(self, config):
        self.config = config
        # 记录配置信息
        self.logger.info("配置已更新: %s", self.config)

    def get_config(self):
        return self.config